//
//  AppDelegate.m
//  BuDeJie
//
//  Created by Avril on 2020/3/1.
//  Copyright © 2020 Avril. All rights reserved.
//

#import "AppDelegate.h"

#import "../Main（主要）/Controller/XMGTabBarController.h"

@interface AppDelegate ()

@end

@implementation AppDelegate


- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
    // Override point for customization after application launch.
    
    self.window = [[UIWindow alloc]initWithFrame:[UIScreen mainScreen].bounds];
    
    //2\创建窗口根控制器，并且设置窗口根控制器
    //窗口在显示的时候，把窗口根控制器的view添加在窗口上
    XMGTabBarController *tabBarVC = [[XMGTabBarController alloc]init];
    self.window.rootViewController = tabBarVC;
    
    
    
   
    //3.i显示窗口
    [self.window makeKeyAndVisible];
    
    return YES;
}

- (void)applicationDidBecomeActive:(UIApplication *)application{
    
    
    
}
- (void)applicationWillResignActive:(UIApplication *)application{
    
    
    
}


@end
